import { getCatagoryList } from '@/api/home'
export default {
  namespaced: true,
  state: {
    catagryList: []
  },

  mutations: {
    setCatagoryList (state, list) {
      state.catagryList = list
    }
  },
  actions: {
    async getCatagroy ({ commit }) {
      const { result } = await getCatagoryList()
      commit('setCatagoryList', result)
    }
  }
}
